﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Unit2Session2c.aspx.vb" Inherits="gdrwebapp1.Unit2Session2c" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="Hotel_Name" HeaderText="Hotel_Name" SortExpression="Hotel_Name">
                <ControlStyle CssClass="colorblue" ForeColor="#FF0066" />
                </asp:BoundField>
                <asp:BoundField DataField="Hotel_Description" HeaderText="Hotel_Description" SortExpression="Hotel_Description" />
                <asp:BoundField DataField="Hotel_Location" HeaderText="Hotel_Location" SortExpression="Hotel_Location" />
                <asp:BoundField DataField="Hotel_Details" HeaderText="Hotel_Details" SortExpression="Hotel_Details" />
                <asp:ImageField DataImageUrlField="HotelLink" HeaderText="Hotel Link">
                    <ControlStyle BackColor="#3399FF" BorderStyle="Outset" CssClass="colorborder" />
                    <HeaderStyle CssClass="colourborder" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT [ID], [Hotel Name] AS Hotel_Name, [Hotel Description] AS Hotel_Description, [Hotel Location] AS Hotel_Location, [Hotel Details] AS Hotel_Details, [HotelLink], [Hotel Image] AS Hotel_Image FROM [tbl1]"></asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
